﻿#pragma once

#include "Game.h"
#include "GameBoard.h"
#include "RivalWindow.h"

typedef struct MainWindow MainWindow;

typedef void(*MainWindowDoModal)(MainWindow*);

// 主窗口
struct MainWindow {
    GameBoard* mGameBoard;      // 游戏区域
    Game* mGame;                // 游戏
    HWND mHandle;               // 窗口句柄
    RivalWindow* mRivalWindow;  // 对手列表窗口
    HWND mStatusBar;            // 状态栏

    MainWindowDoModal doModal;
};

MainWindow* New_MainWindow();
